package cn.kgc.tangcco.redirect;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author 李昊哲
 * @Description
 * @create 2020/10/19 上午8:59
 */
@WebServlet(urlPatterns = "/redirectinner01")
public class RedirectInner01 extends HttpServlet {
    private static final long serialVersionUID = 275821445713297523L;
    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("redirectinner01");
        // 网页重定向
        response.sendRedirect(request.getContextPath() + "/redirect.jsp");
    }
}
